package com.test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * 头条一面,
 */
public class ShuffleMain {
	public static void main(String[] args) {
		int[] arr = {7, 8, 9};
		List<int[]> ints = Arrays.asList(arr);

		ArrayList arrayList = new ArrayList();
		Collections.addAll(arrayList, arr);
		System.out.println(arrayList.toString());
		//上面2个都不是把arr的元素转list,而是把整个arr当成元素转list

		List<Integer> list = new ArrayList();
		list.add(1);
		list.add(2);
		list.add(3);
		Collections.shuffle(list);

	}
}
